#include <stdio.h>
int main(int argc, char const *argv[])
{
    int a[4] = {0};
    for (int i = 0; i < 4; i++)
    {
        printf("请输入第%d个数>:", i + 1);
        scanf("%d", &a[i]);
    }
    printf("数组内容为：");
    for (int i = 0; i < 4; i++)
    {
        printf("%d ", a[i]);
    }
    printf("\n");
    for (int i = 0, t; i < 4 / 2; i++)
    {
        t = a[i];//将第i个数组的值给中间转换变量t
        a[i] = a[4 - 1 - i];//将第（4 - 1 - i）个值放在第i个数组
        a[4 - 1 - i] = t;//将第t的值放在第（4 - 1 - i）数组
    }                  //实现数组逆序输出
    printf("数组内容为：");
    for (int i = 0; i < 4; i++)
    {
        printf("%d ", a[i]);
    }

    return 0;
}
